/*
 * @desc:
 * @LastEditTime: 2024-03-20 17:55:21
 * @params:
 * @return::
 */
const express = require("express");
const userCtrl = require("../controller/user");
const userValidator = require("../validator/user");
const auth = require("../middleware/auth");

const router = express.Router();

// Authentication 用户登录
router.post("/register", userValidator.register, userCtrl.registers);

router.post("/login", userValidator.login, userCtrl.login);

router.get("/getCurrentUser", userCtrl.getCurrentUser);

router.post("/updateOid", userCtrl.updateOid, userValidator.updateOid);

module.exports = router;
